//导航栏数据
let navMenu = [
    // {
    //     path: "/",
    //     icon:"el-icon-s-data",
    //     title: "首页",
    // },
    {
        path: "/jhgl",
        icon: "el-icon-s-help",
        title: "测试计划管理",
        children: [
            {
                path: "/planManagement",
                icon: "el-icon-s-help",
                title: "测试计划维护"
            }
        ]
    },
    {
        path: "/ylgl",
        icon: "el-icon-s-help",
        title: "用例树管理",
        children: [
            {
                path: "/caseManagement",
                icon: "el-icon-s-help",
                title: "执行用例"
            }
        ]
    },
    {
        path: "/sjtj",
        icon: "el-icon-s-help",
        title: "执行数据统计",
        children: [
            {
                path: "/statisticsForTest",
                icon: "el-icon-s-help",
                title: "测试执行统计"
            },
            {
                path: "/statisticsForRd",
                icon: "el-icon-s-help",
                title: "研发自测统计"
            }
        ]
    },
    {
        path: "/yhgl",
        icon: "el-icon-s-help",
        title: "权限管理",
        children: [
            {
                path: "/user",
                icon: "el-icon-s-help",
                title: "用户维护"
            }
        ]
    },
    {
        path: "/bggl",
        icon: "el-icon-s-help",
        title: "测试报告管理",
        children: [
            {
                path: "/planManagemen3t",
                icon: "el-icon-s-help",
                title: "测试进度报告"
            },
            {
                path: "/planManageme4nt",
                icon: "el-icon-s-help",
                title: "测试报告"
            }
        ]
    },

];

let tableTestPlanTitle = [
    {label: "项目名称", prop: "planName", width: "150",},
    {label: "关联任务", prop: "jira", width: "300",},
    {label: "测试人员", prop: "tester", width: "150",},
    {label: "开发人员", prop: "developer", width: "200",},
    {label: "计划开始测试时间", prop: "startTime", width: "150"},
    {label: "计划测试完成时间", prop: "endTime", width: "150"},
    {label: "最后操作人", prop: "operater", width: "150"},
    {label: "创建时间", prop: "createTime", width: "200"}
];


let tableTestPlanInitData = []


let tableTestPlanInit = {
    "planName": "",
    "jira": "",
    "tester": "",
    "developer": "",
    "startTime": "",
    "endTime": "",
    "operater": "",
    "createTime": ""
}


let tableTestCaseTitle = [
    {label: "用例树", prop: "caseName", width: "350",},
    {label: "关联任务", prop: "taskId", width: "150",},
    {label: "优先级", prop: "casePriority", width: "100"},
    {label: "创建人", prop: "creator", width: "100",},
    {label: "测试执行人", prop: "testerRun", width: "100",},
    {label: "测试执行时间", prop: "testerRunTime", width: "150"},
    {label: "测试执行结果", prop: "testerRunResult", width: "100"},
    {label: "研发执行人", prop: "rdRun", width: "100",},
    {label: "研发执行时间", prop: "rdRunTime", width: "100"},
    {label: "研发执行结果", prop: "rdRunResult", width: "100"}
]


let tableStatisticsColumn = [
    {key: 1, field: 'task', title: '被测需求', width: 250},
    {key: 2, field: 'allCase', title: '总用例数', width: 100},
    {key: 3, field: 'allRunCase', title: '总执行数', width: 100},
    {key: 4, field: 'allRate', title: '总执行率', width: 100},
    {key: 5, field: 'allSuccessRate', title: '总执行成功率', width: 150},
    {key: 6, field: 'allFailRate', title: '总执行失败率', width: 150},
    {key: 7, field: 'p1Count', title: 'P1用例数', width: 100},
    {key: 8, field: 'p1RunCount', title: 'P1用例执行数', width: 150},
    {key: 9, field: 'p1SuccessRate', title: 'P1执行成功率', width: 150},
    {key: 10, field: 'p1FailRate', title: 'P1执行失败率', width: 150},
    {key: 11, field: 'p2Count', title: 'P2用例数', width: 100},
    {key: 12, field: 'p2RunCount', title: 'P2用例执行数', width: 150},
    {key: 13, field: 'p2SuccessRate', title: 'P2执行成功率', width: 150},
    {key: 14, field: 'p2FailRate', title: 'P2执行失败率', width: 150},
    {key: 15, field: 'p3Count', title: 'P3用例数', width: 100},
    {key: 16, field: 'p3RunCount', title: 'P3用例执行数', width: 150},
    {key: 17, field: 'p3SuccessRate', title: 'P3执行成功率', width: 150},
    {key: 18, field: 'p3FailRate', title: 'P3执行失败率', width: 150},
    {key: 19, field: 'p4Count', title: 'P4用例数', width: 100},
    {key: 20, field: 'p4RunCount', title: 'P4用例执行数', width: 150},
    {key: 21, field: 'p4SuccessRate', title: 'P4执行成功率', width: 150},
    {key: 22, field: 'p4FailRate', title: 'P4执行失败率', width: 150}
]

let tableUsersTitle = [
    {label: '用户账号', prop: 'userAccount', width: '150',},
    {label: '用户密码', prop: 'userPassword', width: '100',},
    {label: '用户姓名', prop: 'nickName', width: '200',},
    {label: '角色', prop: 'role', width: '150'},
    {label: '权限', prop: 'permission', width: '150'},
    {label: '状态', prop: 'status', width: '150'},
    {label: '最后操作人', prop: 'operater', width: '150'},
    {label: '创建时间', prop: 'createTime', width: '180'}
];


let tableUsersInitData = {
    "userAccount": "",
    "userPassword": "",
    "nickName": "",
    "role":0,
    "permission": "",
    "status": "0",
    "operater": "",
    "createTime": ""
};

let allPermission = [
    {label: '计划管理-计划编辑', key: 'plan_edit'},
    {label: '计划管理-计划保存', key: 'plan_save'},
    {label: '计划管理-脑图入口', key: 'plan_mind'},
    {label: '用例树-用例保存', key: 'caseTree_save'},
    {label: '用例树-用例插入', key: 'caseTree_insert'},
    {label: '用例树-用例移除', key: 'caseTree_del'},
    {label: '用例树-用例执行', key: 'caseTree_run'},
    {label: '用户管理-用户编辑', key: 'user_edit'},
    {label: '用户管理-用户保存', key: 'user_save'},
    {label: '用户管理-用户删除', key: 'user_del'},
    {label: '思维导图-保存', key: 'mind_save'},
];


export default {
    navMenu, tableTestPlanTitle, tableTestPlanInitData,
    tableTestCaseTitle, tableTestPlanInit, tableStatisticsColumn,
    tableUsersTitle, tableUsersInitData, allPermission
}
